|
RAIS
3.2
|
00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Web; 00005 using System.Web.UI; 00006 using System.Web.UI.WebControls; 00007 using RAIS.Common.UserManagement; 00008 using RAIS.UI.Common; 00009 00010 namespace RAIS.UI.SpecificMasks 00011 { 00012 public partial class ShowSystemFields : System.Web.UI.Page 00013 { 00017 protected UserData CurrentUser 00018 { 00019 get { return (UserData)this.Session[UI.Common.Constants.CURRENT_USER_TAG]; } 00020 } 00021 00022 protected void Page_Load(object sender, EventArgs e) 00023 { 00024 this.Response.Cache.SetNoStore(); 00025 if (this.CurrentUser == null) 00026 UI.Common.AccessManagement.SignOut(this); 00027 00028 if (!this.IsPostBack) 00029 { 00030 this.LBLusernameNoTranslation.Text = this.CurrentUser.Name; 00031 this.LBLtools.ForeColor = RAIS.UI.Common.Constants.COLOR_OF_MENU_BAR_TEXT_HIGHLIGHT; 00032 } 00033 00034 bool visible = !PageManagement.IsVisibleSystemFields(this); 00035 PageManagement.ShowHideSystemFields(this, visible); 00036 00037 PageManagement.SetRenamedNodes(this 00038 , UI.Common.Constants.REDIRECTION_URL_PREFIX + "~/ShowSystemFields.aspx" 00039 , (visible) ? "Hide system fields checkbox" : string.Empty); 00040 this.Session[RAIS.UI.Common.Constants.TABLES_TAG] = null; 00041 00042 this.Response.Redirect("~/Tools.aspx"); 00043 00044 } 00045 protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) 00046 { 00047 //UI.Common.UserManagement.ProcessTreeViewOnRedirect(this.TreeView1); 00048 } 00049 protected void LBTNlogout_Click(object sender, EventArgs e) 00050 { 00051 UI.Common.AccessManagement.SignOut(this); 00052 } 00053 } 00054 }